package com.moli.iov.base.model;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.moli.iov.base.model.po.TboxUpgradeFile;
import org.apache.commons.lang3.StringUtils;

/**
 * The type Tbox upgrade file param.
 *
 * @author wanghualin
 * @date 2019-10-09 19:41:12
 */
public class TboxUpgradeFileParam {
  private QueryWrapper<TboxUpgradeFile> queryWrapper;

  public TboxUpgradeFileParam() {
    queryWrapper = new QueryWrapper<>();
    queryWrapper.eq("is_delete", 0);
  }
  public TboxUpgradeFileParam queryEqCompanyId(Long companyId) {
    if (companyId != null) {
      queryWrapper.eq("company_id", companyId);
    }
    return this;
  }
  public TboxUpgradeFileParam queryEqVehicleBand(String vehicleBand) {
    if (StringUtils.isNotBlank(vehicleBand)) {
      queryWrapper.eq("vehicle_band", vehicleBand);
    }
    return this;
  }
  public TboxUpgradeFileParam queryEqVehilceSeries(String vehilceSeries) {
    if (StringUtils.isNotBlank(vehilceSeries)) {
      queryWrapper.eq("vehilce_series", vehilceSeries);
    }
    return this;
  }
  public TboxUpgradeFileParam queryEqVehicleStyle(String vehicleStyle) {
    if (StringUtils.isNotBlank(vehicleStyle)) {
      queryWrapper.eq("vehicle_style", vehicleStyle);
    }
    return this;
  }
  public TboxUpgradeFileParam queryEqTboxManufacturer(String tboxManufacturer) {
    if (StringUtils.isNotBlank(tboxManufacturer)) {
      queryWrapper.eq("tbox_manufacturer", tboxManufacturer);
    }
    return this;
  }
  public TboxUpgradeFileParam queryEqTboxModel(String tboxModel) {
    if (StringUtils.isNotBlank(tboxModel)) {
      queryWrapper.eq("tbox_model", tboxModel);
    }
    return this;
  }
  public TboxUpgradeFileParam queryEqSoftwareVersion(String softwareVersion) {
    if (StringUtils.isNotBlank(softwareVersion)) {
      queryWrapper.eq("software_version", softwareVersion);
    }
    return this;
  }
  public QueryWrapper<TboxUpgradeFile> get() {
    return queryWrapper;
  }

}
